import { DB_URI, DB_OPTIONS } from './dbConfig';
import dotenv from 'dotenv';

// 加载环境变量
dotenv.config();

const config = {
  port: process.env.PORT || 5000,
  mongoURI: DB_URI,
  mongoOptions: DB_OPTIONS,
  jwtSecret: process.env.JWT_SECRET || 'your-default-secret',
  jwtExpire: '7d',
};

export default config; 